﻿using System;

/* 输入字符串返回逆序 */
namespace Practice8
{ 
    public class Practice
    {
        static string Reverse2Str(string str)
        {
            char[] Str2CharArray = str.ToCharArray();
            Array.Reverse(Str2CharArray);
            return new string(Str2CharArray);
        }

        public static void Execute()
        {
            Console.Write("请输入待逆转字符串: ");
            string str = Console.ReadLine();
            string reverse2Str = Reverse2Str(str);
            Console.WriteLine($"res: {reverse2Str}");
        }
    }
}